from typing import List

from pyspark import SparkConf, SparkContext

conf = SparkConf().setMaster("local[*]").setAppName("set_spark_app")
sc = SparkContext(conf=conf)

rdd = sc.textFile("D:\BaiduNetdiskDownload\heima\Python\第15章资料\资料\hello.txt")
# a: List = ["小花", "小美", "小帅"]
# a: dict = {"小花": 18, "小美": 12, "小帅": 16}
# a: str = "abcd"
# rdd = sc.parallelize(a)

# rdd = sc.textFile("D:/hello.txt")

print(rdd.collect())
